package com.coding.kan_yi_dao.service;

import com.coding.kan_yi_dao.common.Result;
import com.coding.kan_yi_dao.entity.GoodsInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 砍一刀，不买就砍你一刀
 * @since 2023-09-20
 */
public interface IGoodsInfoService extends IService<GoodsInfo> {
    //查询
    Result go_select(GoodsInfo goodsInfo);

    //修改
    Result go_update(GoodsInfo goodsInfo);

    //模糊查询
    Result go_select_like(String goodsname);

    //上架商品
    Result go_update_insert(List<Integer> ids);

    //下架商品
    Result go_update_delete(List<Integer> ids);

    GoodsInfo go_selects(Integer id);

    Result go_info_goods(GoodsInfo goodsInfo);

    //添加
    Result go_info_insert(GoodsInfo goodsInfo);

}
